import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // 商家销售统计
  {
    path: '/sellerpage',
    component: () =>
      import(/* webpackChunkName: "SellerPage" */ '@/views/SellerPage.vue')
  },
  // 销量趋势图标
  {
    path: '/trendpage',
    component: () =>
      import(/* webpackChunkName: "TrendPage" */ '@/views/TrendPage.vue')
  },
  // 商家分布模块
  {
    path: '/mappage',
    component: () =>
      import(/* webpackeChunkName: "MapPage" */ '@/views/MapPage.vue')
  },
  // 销量排行
  {
    path: '/rankpage',
    component: () => import(/* webpackChunkName: "RankPage" */'@/views/RankPage.vue')
  },
  // 热销商品占比
  {
    path: '/hotpage',
    component: () => import(/* webpackChunkName: "HotPage" */'@/views/HotPage.vue')
  },
  // 库存与销量
  {
    path: '/stockpage',
    component: () => import(/* webpackChunkName: "StockPage" */'@/views/StockPage.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
